package com.dc.ssjt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dc.ssjt.config.db.DataSource;
import com.dc.ssjt.config.db.DataSourceNames;
import com.dc.ssjt.entity.Account;
import com.dc.ssjt.entity.Order;
import com.dc.ssjt.mapper.AccountMapper;
import com.dc.ssjt.mapper.OrderMapper;
import com.dc.ssjt.service.AccountService;
import com.dc.ssjt.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 订单服务，业务逻辑
 *
 * @author duchao
 */
@Slf4j
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    /**
     * 下单
     *
     * @param order 下单
     */
    @DataSource(name = DataSourceNames.DS_ORDER)
    @Override
    public void create(Order order) {
        baseMapper.create(order);
    }
}
